﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;

namespace TestProject
{
    class Game
    {
        List<Word> spisok = new List<Word>();

        internal List<Word> Spisok
        {
            get { return spisok; }
        }

        public Game(string filepath)
        {
            Read(filepath);
        }

        public void Read(string filepath)
        { 
            string[] mass2 = new string[2];
            string[] mass1 = File.ReadAllLines(filepath, Encoding.Default);
            for (int i = 0; i < mass1.Length; i++)
            {
                mass2 = mass1[i].Split(';');
                Word word = new Word(mass2[0], mass2[1]);
                spisok.Add(word);
            }
        }
    }
}